﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BillManager.ascx.cs" Inherits="FreshCms.BackEnd.Controls.Customer.BillManager" %>


<%=Session["Water"].ToString() %>



<script src="/BackEnd/js/jquery.price_format.min.js" type="text/javascript"></script>

<div id="page-content" class="block">
    <div class="block-header">
        <a href="javascript:void(0)" class="header-title-link">
            <h1>Bán hàng</h1>
        </a>
    </div>

    <div class="table-responsive">
        <table id="tblParent" class="table table-hover">
            <thead>
                <tr>
                    <th class="text-center" style="width: 60px;">#</th>
                    <th class="text-center" style="width: 60px;">Id</th>
                    <th>Tên sản phẩm</th>
                    <th style="width: 100px;">Đơn vị</th>
                    <th style="width: 100px;">Giá</th>
                    <th style="width: 110px;">SL kho</th>
                    <th class="text-center" style="width: 200px;">Thao tác</th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rpt" runat="server">
                    <ItemTemplate>
                        <tr id="trMain_<%# Eval("ProId") %>">
                            <td class="text-center"><%# Container.ItemIndex + 1 %></td>
                            <td class="text-center"><%# Eval("ProId")%></td>
                            <td><%# Eval("ProName")%></td>
                            <td><%# Eval("ProDesc")%></td>
                            <td rel="tdPrice"><%# Eval("ProPrice")%></td>
                            <td rel="tdQuantity"><%# Eval("ProTotalQuantity")%></td>
                            <td class="text-center">
                                <div class="btn-group">
                                    <select name="quantity_<%# Eval("ProId") %>" id="quantity_<%# Eval("ProId") %>" class="form-control form-control-status" size="1" style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 51);float: left;width: 50px;margin-right: 5px;">
                                        <option value="1" selected>1</option>
                                        <option value="2">2</option>
                                        <option value="3">4</option>
                                        <option value="4">4</option>
                                        <option value="5">5</option>
                                        <option value="6">6</option>
                                        <option value="7">7</option>
                                        <option value="8">8</option>
                                        <option value="9">9</option>
                                        <option value="10">10</option>
                                    </select>
                                    <a href="javascript:void(0)" data-toggle="tooltip" title="" class="btn btn-xs btn-default btn-success"
                                        data-original-title="Bán sản phẩm này" onclick="SellProduct(<%# Eval("ProId") %>)"><i class="gi gi-usd"></i></a>
                                </div>
                            </td>
                        </tr>
                        
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    
</div>
